package com.wnxy.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
@TableName("t_maintenance_personnel")
@ApiModel(value = "MaintenancePersonnel对象", description = "")
public class MaintenancePersonnel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识运维人员。")
    @TableId(value = "operator_id", type = IdType.AUTO)
    @Excel(name = "ID", width = 10)
    private Long operatorId;

    @ApiModelProperty("存储运维人员的图片路径。")
    @Excel(name = "图片路径", width = 30, needMerge = true)
    private String image;

    @ApiModelProperty("用户编号")
    @Excel(name = "用户编号", width = 20, needMerge = true)
    private String userNumber;

    @ApiModelProperty("用户姓名。")
    @Excel(name = "用户姓名", width = 20, needMerge = true)
    private String userName;

    @ApiModelProperty("存储运维人员的证书信息。")
    @Excel(name = "证书信息", width = 20, needMerge = true)
    private String certificate;

    @ApiModelProperty("邮箱。")
    @Excel(name = "邮箱", width = 20, needMerge = true)
    private String contactEmail;

    @ApiModelProperty("运维人员状态,0：禁用状态，1：启用状态。默认为1")
    @Excel(name = "运维人员状态", width = 20, needMerge = true, replace = {"启用_1", "禁用_0", "维修_-1", "空闲_2"})
    private Integer status;

    @ApiModelProperty("人员类别，例如：内部员工，外包员工。")
    @Excel(name = "人员类别", width = 20, needMerge = true)
    private String personnelCategory;

    @ApiModelProperty("逻辑删除字段：0：未删除")
    @Excel(name = "逻辑删除", width = 20, needMerge = true, replace = {"未删除_0", "已删除_*"})
    private Integer flag;
}
